package com.study;

import androidx.multidex.MultiDex;
import com.common.CommonApplication;
import com.common.bean.UserInfo;
import com.study.db.DaoManager;

public class AppHolder extends CommonApplication {

    public static AppHolder instance;
    public static AppHolder getInstance() {
        return instance;
    }

    private UserInfo userInfo = null;

    @Override
    public void onCreate() {
        super.onCreate();
        MultiDex.install(this);
        initGreenDao();
    }

    private void initGreenDao() {
        DaoManager mManager = DaoManager.getInstance();
        mManager.init(this);
    }

    public UserInfo getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }
}
